package com.fhz.day003;

import android.os.Bundle;

import androidx.databinding.DataBindingUtil;
import androidx.fragment.app.Fragment;

import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.fhz.day003.databinding.FragmentBlank2Binding;


public class BlankFragment2 extends Fragment {

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        // Inflate the layout for this fragment
//        inflater.inflate(R.layout.fragment_blank2, container, false);
        FragmentBlank2Binding blank2Binding = DataBindingUtil.inflate(inflater,R.layout.fragment_blank2,container,false);
        User user = new User("大明", "10");
        blank2Binding.setUser(user);
        return blank2Binding.getRoot();
    }
}